package com.edu.dao.impl;

import com.edu.bean.MyDataSource;
import com.edu.dao.UserDao;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;


/**
 * @Author:zyn
 * @Date:2025/11/3--17:25:52
 */
@Repository
public class UserDaoImpl implements UserDao {
    @Resource
    private  MyDataSource myDataSource;

    @Override
    public void selectUser() {
        System.out.println("执行了userDao的查询方法");
        myDataSource.getConnection();
    }
}
